

(function($) {
	$.fn.validationEngineLanguage = function() {};
	$.validationEngineLanguage = {
		newLang: function(ctx,id) {
			$.validationEngineLanguage.allRules = 	{"required":{    			// Add your regex rules here, you can take telephone as an example
						"regex":"none",
						"alertText":"* 此栏为必填项",
						"alertTextCheckboxMultiple":"* 请选择一个选项",
						"alertTextCheckboxe":"* 此选择框为必选"},
					"length":{
						"regex":"none",
						"alertText":"* 请输入 ",
						"alertText2":" 至 ",
						"alertText3": " 位"},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* 复选框超过最大可选数"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"* 请至少选择 ",
						"alertText2":" 项"},	
					"confirm":{
						"regex":"none",
						"alertText":"* 您的输入有误，请重新输入"},		
					"telephone":{
						//"regex":"/^[0-9\-\(\)\ ]+$/",
						"regex":"\d{3}-\d{8}|\d{4}-\d{7}|\d{8}|\d{7}",
						"alertText":"* 您输入的电话号码格式有误"},	
					"mobilenumber":{
						//"regex":"^1[358]\d{9}$|^1060[1-9]\d{1,2}\d{7,8}$",
						"regex":"/^0{0,1}(13[0-9]|15[0-9]|18[0-9])[0-9]{8}$/",
						"alertText":"* 您输入的手机号码格式有误"},
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* 您输入的电子邮件地址格式有误"},	
					"date":{
                         "regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
                         "alertText":"* 您输入的时间格式有误，时间格式为：YYYY-MM-DD"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"* 请输入数字"},	
					"onlyFloat":{
							"regex":"/^[0-9]{0,13}(\.[0-9]+)?$/",
							"alertText":"* 请输入带小数点的数字"},
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* 请去掉特殊字符，重新输入"},
					"onlyNumOrCharacter":{
							"regex":"/^[0-9a-zA-Z]+$/",
							"alertText":"请输入数字或英文字符"},	
					"onlyCharacter":{
								"regex":"/^[a-z]+$/",
								"alertText":"请输入小写字符"},				
					"Table":{
						"regex":"/^[a-zA-Z]+(_[a-zA-Z]+)*$/",
						"alertText":"表名只能是字母和下划线，以字母开头和结尾"
					},
					"ajaxFeeCode":{
						"file":ctx+"/feeItem/feeItem.do?method=validatorFeeCode&id="+id,
						"extraData":"",
						"alertText":"* 该收费事项编号已存在",
						"alertTextOk":"* 该收费事项编号可用",	
						"alertTextLoad":"* 验证中，请稍后……"},		
					"ajaxUserName":{
						"file":ctx+"/user/user.do?method=validatorName&id="+id,
						"extraData":"",
						"alertText":"* 该用户名已存在",
						"alertTextOk":"* 该用户名可用",	
						"alertTextLoad":"* 验证中，请稍后……"},		
					"ajaxDeptName":{
						"file":ctx+"/user/user.do?method=validatorDeptName",
						"extraData":"",
						"alertText":"* 单位名称输入有误",
						"alertTextOk":"* 单位名称输入正确",	
						"alertTextLoad":"* 验证中，请稍后……"},
					"ajaxResourceName":{
						"file":ctx+"/resource/resource.do?method=validatorName&id="+id,
						"extraData":"",
						"alertText":"* 该资源名称已存在",
						"alertTextOk":"* 该资源名称可用",	
						"alertTextLoad":"* 验证中，请稍后……"},
					"ajaxResource":{
						"file":ctx+"/resource/resource.do?method=validatorResourceName&id="+id,
						"extraData":"",
						"alertText":"* 上级资源名称输入有误",
						"alertTextOk":"* 上级资源名称输入正确",	
						"alertTextLoad":"* 验证中，请稍后……"},	
					"ajaxDistict":{
						"file":ctx+"/distict/distict.do?method=validatorDistName&id="+id,
						"extraData":"",
						"alertText":"* 上级中心名称输入有误",
						"alertTextOk":"* 上级中心名称输入正确",	
						"alertTextLoad":"* 验证中，请稍后……"},	
					"ajaxDistCode":{
						"file":ctx+"/distict/distict.do?method=validatorCode&id="+id,
						"extraData":"",
						"alertText":"* 该中心编码已存在",
						"alertTextOk":"* 该中心编码可用",	
						"alertTextLoad":"* 验证中，请稍后……"},	
					"ajaxDeptCode":{
						"file":ctx+"/department/department.do?method=validatorCode&id="+id,
						"extraData":"",
						"alertText":"* 该单位编码已存在",
						"alertTextOk":"* 该单位编码可用",	
						"alertTextLoad":"* 验证中，请稍后……"},
					"ajaxHoliName":{
							"file":ctx+"/holiday/holiday.do?method=validatorName&id="+id,
							"extraData":"",
							"alertText":"* 该节假日名称已存在",
							"alertTextOk":"* 该节假日名称可用",	
							"alertTextLoad":"* 验证中，请稍后……"},						
				  "ajaxServNo":{
							"file":ctx+"/serviceItem/serviceItem.do?method=validatorServNo&id="+id,
							"extraData":"",
							"alertText":"* 该事项编号已存在",
							"alertTextOk":"* 该事项编号可用",	
							"alertTextLoad":"* 验证中，请稍后……"},
				"ajaxServhasCase":{
								"file":ctx+"/serviceItem/serviceItem.do?method=validatorServhasCase&id="+id,
								"extraData":"",
								"alertText":"* 事项已存在办件,不可修改",
								"alertTextOk":"* 该事项编码可用",	
								"alertTextLoad":"* 验证中，请稍后……"},			
				  "ajaxMateNo":{
							"file":ctx+"/materialItem/materialItem.do?method=validatorMateNo&id="+id,
							"extraData":"",
							"alertText":"* 该材料编号已存在",
							"alertTextOk":"* 该材料编号可用",	
							"alertTextLoad":"* 验证中，请稍后……"},
					"ajaxDictCode":{
						"file":ctx+"/spdictionary/dictionary.do?method=validatorCode&id="+id,
						"extraData":"",
						"alertText":"* 该字典编码已存在",
						"alertTextOk":"* 该字典编码可用",	
						"alertTextLoad":"* 验证中，请稍后……"},							
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"* 请输入英文字符"},
					"ajaxHSYJ":{
						"regex":"/^[\\s]*|[\\s]*$/",
						"alertText":"* 请输入会审意见"},
					"ajaxSubjectCode":{
						"file":ctx+"/subject/subject.do?method=checkSubjectCode&id="+id,
						"extraData":"",
						"alertText":"* 该主题编码已存在",
						"alertTextOk":"* 该主题编码可用",	
						"alertTextLoad":"* 验证中，请稍后……"
					},
					"ajaxSubjectName":{
						"file":ctx+"/subject/subject.do?method=checkSubjectName&id="+id,
						"extraData":"",
						"alertText":"* 该主题名称已存在",
						"alertTextOk":"* 该主题名称可用",	
						"alertTextLoad":"* 验证中，请稍后……"
					},
					"ajaxCatalogCode":{
						"file":ctx+"/catalog/catalog.do?method=checkCatalogCode&id="+id,
						"extraData":"",
						"alertText":"* 该目录编码已存在",
						"alertTextOk":"* 该目录编码可用",	
						"alertTextLoad":"* 验证中，请稍后……"
					},
					"ajaxCatalogName":{
						"file":ctx+"/catalog/catalog.do?method=checkCatalogName&id="+id,
						"extraData":"",
						"alertText":"* 该目录名称已存在",
						"alertTextOk":"* 该目录名称可用",	
						"alertTextLoad":"* 验证中，请稍后……"
					},
					"ajaxCatalogTableName":{
						"file":ctx+"/catalog/catalog.do?method=checkCatalogTableName&id="+id,
						"extraData":"",
						"alertText":"* 该目录表名已存在",
						"alertTextOk":"* 该目录表名可用",	
						"alertTextLoad":"* 验证中，请稍后……"
					},
					"ajaxIndexCode":{
						"file":ctx+"/catalogIndex/index.do?method=valiIndexCode&id="+id,
						"extraData":"",
						"alertText":"* 该编号已存在",
						"alertTextOk":"* 该编号可用",	
						"alertTextLoad":"* 验证中，请稍后……"
					},
					"ajaxTypeName":{
						"file":ctx+"/type/type.do?method=valiTypeName&id="+id,
						"extraData":"",
						"alertText":"* 该类型名称已存在",
						"alertTextOk":"* 该类型名称可用",	
						"alertTextLoad":"* 验证中，请稍后……"
					},
					"ajaxusername":{
						"extraData":"",
						"alertText":"* 该类型名称已存在",
						"alertTextOk":"* 该类型名称可用",	
						"alertTextLoad":"* 验证中，请稍后……"
					}
					};	
		}
	};
})(jQuery);